let path = require('path')

// 文件路径
let pathStr='/a/b/c/czk.html'
// 获取文件的扩展名
let suffix=path.extname(pathStr)

console.log('suffix====',suffix)